/**
 * Created by henian.xu on 2018/11/9.
 *
 */

const { Nuxt } = require('nuxt');
const NUXT = Symbol('Application#nuxt');
const config = require('../../config/config.nuxt');
// const { loadNuxtConfig } = require('../../lib/utils');
const nuxt = new Nuxt(config);

module.exports = {
    get nuxt() {
        if (!this[NUXT]) {
            // this[NUXT] = new Nuxt(loadNuxtConfig(this.config));
            this[NUXT] = nuxt;
        }
        return this[NUXT];
    },
};
